package com.timmy.progressview;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    ProgressView mProgressview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ProgressView progressView = (ProgressView) findViewById(R.id.progressview);

        progressView.setIcon(R.drawable.ic_pause);
        progressView.setNote("你好");

        progressView.setProgress(50);
        progressView.setMax(100);

        progressView.setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    }
}
